﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Sunboxsoft.ASMS.Server.Domain.Entity
{
    /// <summary>
    /// 日结
    /// </summary>
    public class EDailySettlement
    {
        public Guid Id { get; set; }
        public Guid BusinessId { get; set; }
        public Guid StationId { get; set; }
        /// <summary>
        /// 结算日期
        /// </summary>
        public DateTime SettledDate { get; set; }
        /// <summary>
        /// 总收入
        /// </summary>
        public decimal GeneralIncome { get; set; }
        /// <summary>
        /// 客户数
        /// </summary>
        public int CustomerCount { get; set; }
        /// <summary>
        /// 新增客户数
        /// </summary>
        public int CustomerIncrease { get; set; }

        #region MaintenanceBill

        /// <summary>
        /// 订单总数
        /// </summary>
        public int MaintBillCount { get; set; }

        /// <summary>
        /// 订单总额
        /// </summary>
        public decimal MaintBillAmount { get; set; }

        /// <summary>
        /// 订单挂账总额
        /// </summary>
        public decimal MaintBillCreditAmount { get; set; }

        /// <summary>
        /// 订单实际收益
        /// </summary>
        public decimal MaintBillPaidAmount { get; set; }

        /// <summary>
        /// 订单毛利额
        /// </summary>
        public decimal MaintBillGrossProfit { get; set; }

        #endregion

        #region ServiceItem
        /// <summary>
        /// 服务项目总数
        /// </summary>
        public int ServiceItemCount { get; set; }
        /// <summary>
        /// 工时费
        /// </summary>
        public int ServiceItemAmount { get; set; }
        /// <summary>
        /// 打折(金额)
        /// </summary>
        public int ServiceItemDiscount { get; set; }
        /// <summary>
        /// 套餐减免(金额)
        /// </summary>
        public int ServiceItemPackage { get; set; }
        /// <summary>
        /// 提成(金额)
        /// </summary>
        public int ServiceItemCommission { get; set; }
        /// <summary>
        /// 税费(金额)
        /// </summary>
        public int ServiceItemTax { get; set; }
        #endregion

        #region material
        public int MaterialCount { get; set; }
        public decimal MaterialAmount { get; set; }
        public decimal MaterialDiscount { get; set; }
        public decimal MaterialCost { get; set; }
        public decimal MaterialPackage { get; set; }
        public decimal MaterialCommission { get; set; }
        public decimal MaterialTax { get; set; }
        #endregion

        #region package
        /// <summary>
        ///  销售套餐数量
        /// </summary>
        public int SalePackageCount { get; set; }

        /// <summary>
        ///  销售套餐金额
        /// </summary>
        public decimal SalePackageAmount { get; set; }

        /// <summary>
        /// 销售套餐提成金额
        /// </summary>
        public decimal SalePackageCommission { get; set; }
        #endregion

        #region recharge
        /// <summary>
        /// 充值次数
        /// </summary>
        public int RechargeCount { get; set; }
        /// <summary>
        /// 充值销售额
        /// </summary>
        public decimal RechargeAmount { get; set; }
        /// <summary>
        /// 充入的余额
        /// </summary>
        public decimal RechargeBalance { get; set; }
        #endregion

        /// <summary>
        /// 剩余客户总余额
        /// </summary>
        public decimal BalanceRemainder { get; set; }
        /// <summary>
        /// 账户余额使用
        /// </summary>
        public decimal BalanceSpend { get; set; }

        /// <summary>
        /// 资金入账
        /// </summary>
        public decimal CapticalIncrease { get; set; }

        /// <summary>
        ///  资金出帐
        /// </summary>
        public decimal CaptialDecrease { get; set; }

        #region payitem
        /// <summary>
        /// 其他项目支付金额
        /// </summary>
        public decimal PayItemPayment { get; set; }
        /// <summary>
        /// 其他项目优惠金额
        /// </summary>
        public decimal PayItemDiscount { get; set; }
        #endregion

        #region point
        /// <summary>
        /// 新增积分
        /// </summary>
        public decimal PointIncrease { get; set; }

        /// <summary>
        /// 积分花费
        /// </summary>
        public decimal PointDecrease { get; set; }

        #endregion

        #region Coupon
        /// <summary>
        /// 使用优惠券数量
        /// </summary>
        public int CouponCount { get; set; }
        /// <summary>
        /// 使用优惠券金额
        /// </summary>
        public decimal CouponAmount { get; set; }
        #endregion

        public DateTime CreatedTime { get; set; }
        public string Creator { get; set; }
    }
}
